package cn.edu.zafu.bigdata.x.bd121.Movable;

import cn.edu.zafu.bigdata.x.bd121.shape.Circle;

/**
 * 可变大小的圆类
 *
 * @author 202211090121
 */
public class ResizableCircle extends Circle implements Movable, Resizable {

    /**
     * 表示物体开始移动
     */
    @Override
    public void move() {
        System.out.println("The circle is moving");
    }

    /**
     * 表示物体停止移动
     */
    @Override
    public void stop() {
        System.out.println("The circle has stopped");
    }

    /**
     * 表示物体根据参数缩放
     *
     * @param factor 缩放因子
     */
    @Override
    public void resize(double factor) {
        this.redius *= factor;
        System.out.printf("缩放后的半径:%f", this.redius);
    }
}
